nestedsvm: fix host crash with pv-on-hvm Linux KVM guest
authorChristoph Egger <Christoph.Egger@amd.com>
Thu, 12 May 2011 07:57:08 +0000 (08:57 +0100)
committerChristoph Egger <Christoph.Egger@amd.com>
Thu, 12 May 2011 07:57:08 +0000 (08:57 +0100)
Nested SVM was unaware of the HVM direct vector eventchn mechanism.
Attached patch fixes a host crash when starting a KVM L2 guest on a
pv-on-hvm L1 Linux guest (e.g., HVM Debian Squeeze domU).

Signed-off-by: Uwe Dannowski <Uwe.Dannowski@amd.com>
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
Acked-by: Tim Deegan <Tim.Deegan@citrix.com>
xen/arch/x86/hvm/svm/nestedsvm.c

index fe03ab2f2ce4ebe7ee4dd47dee78af6fc69a9a8d..1dc6dd04ab055d0000165355c2c2474680c343b1 100644 (file)
@@ -1365,6 +1365,7 @@ nestedsvm_vcpu_interrupt(struct vcpu *v, const struct hvm_intack intack)
     switch (intack.source) {
     case hvm_intsrc_pic:
     case hvm_intsrc_lapic:
+    case hvm_intsrc_vector:
         exitcode = VMEXIT_INTR;
         exitinfo2 = intack.vector;
         break;